package org.example.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.example.domain.TJrRentInstallment;
import org.example.domain.TJrSfLoan;
import org.example.domain.TSfContract;
import org.example.enums.FinanceProductTypeEnum;
import org.example.service.TJrRentInstallmentService;
import org.example.service.TJrSfLoanService;
import org.example.service.TSfContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

@RestController
@RequestMapping("/rentInstallDetail")
public class TJrRentInstallmentController {

    @Autowired
    TJrRentInstallmentService tJrRentInstallmentService;

    @Autowired
    TJrSfLoanService loanService;


    @Autowired
    TSfContractService contractService;

    @GetMapping("searchRentInstall")
    public AjaxResult searchRentInstall(Page page, TJrRentInstallment jrRentInstallment){
        System.out.println(jrRentInstallment);
        IPage<TJrRentInstallment> list = tJrRentInstallmentService.selectPageVo(page, jrRentInstallment);
        return AjaxResult.success(list);
    }
}
